package com.demo.aop.pcut.stat;

import org.aopalliance.intercept.MethodInterceptor;
import org.aopalliance.intercept.MethodInvocation;

/**
 * 描述：
 *
 * @author lida
 * @time 2019/10/23 11:55
 */
public class SimpleAdvice implements MethodInterceptor {
	@Override
	public Object invoke(MethodInvocation invocation) throws Throwable {
		System.out.println("拦截到方法");
		Object re = invocation.proceed();
		System.out.println("方法结束");
		return re;
	}
}
